<com:TPanel CssClass="portlet">
<com:TPanel Id="pnlNews" GroupingText="<%[Latest news]%>" Visible="false" CssClass="newsportlet">
	<com:TDataList
		Style="width: 100%;"
		ID="NewsDataList"
		OnItemCommand="onItemCommand"
		HeaderStyle.CssClass="grid-header"
		HeaderStyle.Width="100%"
		HeaderStyle.Height="25px" >
		<prop:ItemTemplate>
			<table width="100%" class="newstable" cellpadding="0" cellspacing="0">
			<tr class="newstableheader">
				<td class="newstableheader">
					<div style="float: left;"><%# $this->DataItem['subject'] %></div>
					<div style="float: right;"><com:TDateFormat Pattern="shortdate shorttime" Culture=<%#$this->Application->Culture%> Value=<%# $this->DataItem['created'] %>/>
				</td>
			</tr>
			<tr class="newstablebody">
				<td colspan="2" class="newstablebody" style="width: 100%;"><%# $this->DataItem['body'] %></td>
			</tr>
			</table>
		</prop:ItemTemplate>
	</com:TDataList>

<com:TPager ID="NewsDataListPager"
	ControlToPaginate="NewsDataList"
	FirstPageText="<<"
	LastPageText=">>"
	Mode="NextPrev"
	NextPageText=">"
	PrevPageText="<"
	OnPageIndexChanged="pageNewsListChanged"
	/>

</com:TPanel>
<com:TPanel Id="pnlNewsHeaders" GroupingText="<%[Latest news]%>" Visible="false" CssClass="NewsPortlet">
	<com:TDataList
		Style="width: 100%;"
		ID="NewsHeadersDataList"
		OnSelectedIndexChanged="selectNewsHeadLineItem"
		ItemStyle.CssClass="grid-row1"
		AlternatingItemStyle.CssClass="grid-row2"
		SelectedItemStyle.CssClass="grid-row-selected"
		HeaderStyle.CssClass="grid-header"
		HeaderStyle.Width="100%"
		HeaderStyle.Height="25px"
		>
		<prop:ItemTemplate>
		<table width="100%" class="newstableshort">
			<tr class="newstableshort">
	  			<td class="newstableshort">
					<div style="float: left"><com:TLinkButton Id="HeadLine" Text=<%#$this->DataItem['subject'] %> CommandName="select" /></div>
					<div style="float: right"><com:TDateFormat Pattern="shortdate shorttime" Culture=<%#$this->Application->Culture%> Value=<%# $this->DataItem['created'] %>/></div>
				</td>
			</tr>
		</table>
		</prop:ItemTemplate>

	<prop:SelectedItemTemplate>
		<table class="newstable" border="0" width="100%" class="newstable" cellspacing="0" cellpadding="0">
			<tr class="newstableheader">
				<td class="newstableheader">
					<div class="newstableheader" style="float: left;"><%#$this->DataItem['subject'] %></div>
					<div class="newstableheader" style="float: right;"><com:TDateFormat Pattern="shortdate shorttime" Value=<%# $this->DataItem['created'] %>/></div>
				</td>
			</tr>
			<tr class="newstablebody">
				<td class="newstablebody" colspan="2"><%# $this->DataItem['body'] %></td>
			</tr>
		</table>
	</prop:SelectedItemTemplate>
	</com:TDataList>

<com:TPager ID="NewsHeadersDataListPager"
	ControlToPaginate="NewsHeadersDataList"
	FirstPageText="<<"
	LastPageText=">>"
	Mode="NextPrev"
	NextPageText=">"
	PrevPageText="<"
	OnPageIndexChanged="pageNewsHeaderListChanged"
	/>
</com:TPanel>
</com:TPanel>